//引用网络请求
import {
    reqtMenus
} from '../../api/index'
const state = {
    menusList: []
};

const mutations = {
    GETMENUS(state, menusList) {
        state.menusList = menusList
    }
};

const actions = {
    async getMenus({
        commit
    }) {
        let res = await reqtMenus()
        commit('GETMENUS', res.data)
    }
};

const getters = {

};

export default {
    state,
    mutations,
    actions,
    getters,
}